package learn.contorlller;

import org.springframework.web.bind.annotation.*;

@RestController
public class RestfulController {

    @GetMapping("/getUser")
    public String getUser() {
        return "get请求";
    }

    @PostMapping("/postUser")
    public String postUser() {
        return "postUser";
    }

    @PutMapping("/putUser")
    public String putUser() {
        return "putUser";
    }

    @DeleteMapping("/deleteUser")
    public String deleteUser() {
        return "deleteUser";
    }
}
